<!--
 * @Author: 陈妮娜 969682281@qq.com
 * @Date: 2024-03-15 10:04:28
 * @LastEditors: 陈妮娜 969682281@qq.com
 * @LastEditTime: 2024-04-23 16:47:23
 * @FilePath: \Gx-Back\src\components\sampleManage\sampleMaterial\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <!-- 小弹框 width:500,height:0.3,top:15%  -->
  <!-- 中弹框 width:800,height:0.5,top:10% -->
  <!-- 大弹框 width:1060,height:0.76,top:5% -->
  <!-- 超大弹框 width:1460,height:0.76,top:5% -->
  <div class="Control-1 mechanism_dialogS closure" id="comcn small">
    <el-dialog
      width="1060px"
      :title="title"
      v-loading="loading"
      element-loading-text="拼命加载中"
      element-loading-background="rgba(0, 0, 0, 0.2)"
      element-loading-spinner="el-icon-loading"
      v-dialogDrag
      :visible.sync="visible"
      @close="closeDialog"
      :append-to-body="true"
      top="5%"
    >
      <div
        class="dialogBody common commonClassDialog moduleDialog"
        id="longLable"
        :style="{ height: dialogHeight }"
        style="width: 100%"
      >
        <div style="overflow-y: auto; margin-bottom: 20px">
          <div class="publicForm" style="height: 600px">
            <publicForm
              ref="publicForm"
              lableWidth="120px"
              :formObj="formObj"
              :formData="formData"
              :selected="selected"
              @selectChange="selectChange"
              @inputFocus="inputFocus"
              @clickDialog="clickDialog"
            >
            </publicForm>

            <div class="newlyAdded_btn" v-if="btnShow">
              <el-button
                :disabled="isLock"
                type="primary"
                @click="yj_saveForm()"
              >
                保存
              </el-button>
              <el-button type="warning" @click="visible = false">
                关闭
              </el-button>
            </div>
          </div>
        </div>
      </div>
    </el-dialog>

    <!-- WBS -->
    <custom-dialog
      @refreshList="refreshList"
      v-if="WBSShow"
      :dialogVisible="WBSShow"
      @close1="WBSDialog"
      @getWBS="getWBS"
    >
    </custom-dialog>
    <!-- WBS -->
  </div>
</template>

<script src="./index.js"></script>
<style lang="less" scoped>
@import "./index.less";
</style>
